﻿@model Int32?

@if ((bool) (ViewData["isReadOnly"] ?? false))
{
    @Html.TextBoxFor(x=>x,new{@class="form-control input-sm ",@disabled="disabled"})
}else{
    @Html.TextBoxFor(x=>x,new{@class="form-control input-sm "})
}